package com.birdpiss.commons.domain;

import java.io.Serializable;

/**
 * The class User.
 */
public class User implements Serializable {

	private static final long serialVersionUID = -2509527929698539669L;
	private Integer id;
	private String name;

	/**
	 * Gets the id.
	 *
	 * @return the id
	 */
	public Integer getId() {
		return this.id;
	}

	/**
	 * Sets the id.
	 *
	 * @param id the new id
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * Gets the name.
	 *
	 * @return the name
	 */
	public String getName() {
		return this.name;
	}

	/**
	 * Sets the name.
	 *
	 * @param name the new name
	 */
	public void setName(String name) {
		this.name = name;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();

		sb.append("\nId: " + this.id);
		sb.append("\nName: " + this.name);

		return sb.toString();
	}

}
